Original stammt von einer Dnischen Webseite.
bersetzt von DJMicha1985 (DJ Vampire) ( http://www.phpfusion-supportclub.de & http://radio-skyfly.de)
--------------------------------------------------------------

User Foto-Album v7

Bilder werden beim Hochladen automatisch in JPG gewandelt und in eine bestimmte gre gebracht.
--------------------------------------------------------------------------------------------------

Installation:

Laden Sie den Inhalt der Ordner Basedir auf ihren Server.

Dem Ordner: images/userprofilepics & images/userprofilepics/thumbs CHMOD 777 geben.

Einbau !

Edit profile.php  ( vorher Backup machen ) 

Suche nach: closetable ( ganz unten )

Fge direckt unter closetable folgendes ein:

//start useralbum

opentable("".$user_data['user_name']."*s Fotoalbum");

echo "<br><table align='center' cellpadding='0' cellspacing='1' width='400' class='tbl-border'><td align='left' class='tbl2'>";

if (!isset($userdata['user_id'])) $userdata['user_id'] ='';

if ($user_data['user_id'] != $userdata['user_id']) {

echo "<center><b>Klicke auf ein Bild um es in Originalgre zu sehen.</b></center>";

}else{

echo "<center><a title='Rediger dit fotoalbum' href='".BASEDIR."edit_userprofilepics.php'><b>Fotoalbum bearbeiten</b></a></center>";

}
echo "</td></table><br>";


include('userprofilepics.php');

$i=0;
$found=0;
$pfad="images/userprofilepics/thumbs/";
$verz=opendir($pfad);
while ($file=readdir($verz))
{
    if (filetype($pfad.$file)!="dir")
    {
        $i++;
        if($file != substr_count($file,"[".$user_data['user_id']."]")) {
        $found++;
}
}
}
if($found<'1') {
echo'';

}else{

echo '
<table width="600" align="center" border="0" cellspacing="1" cellpadding="0"><td>';

include INCLUDES."ratings_useralbum.php";
include INCLUDES."comment_useralbum.php";

showrating("M", $_GET['lookup'], FUSION_SELF."?lookup=".$_GET['lookup']);

echo '<br />';

showcomment("UA", DB_USERS, "user_id", $_GET['lookup'], FUSION_SELF."?lookup=".$_GET['lookup']);

echo '</td></table>';

}



closetable();

//end useralbum


Edit: infusions/user_info_panel/user_info_panel.php ( vorher Backup machen ) 

Finde:

echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['global_120']."</a><br />\n";
       
Fge direckt darunter ein:

echo THEME_BULLET." <a href='".BASEDIR."edit_userprofilepics.php' class='side'>Mein Fotoalbum</a><br />\n";

FERTIG !

------------------------------------------------------------------------------------------------------------------

Um die Album-Einstellungen zu ndern bearbeite die datei: edit_userprofilepics.php

------------------------------------------------------------------------------------------------------------------

Anbindung ans Punktesystem:

ffne die edit_userprofilepics.php

suche:

//if (score_account_stand() > 25) {

ndere es in:

if (score_account_stand() > 25) {

statt der 25 msst ihr eintragen wieviel Punkte ein user mind haben muss um ein Bild hochzuladen



suche:

//score_negative("UPB");

ndere es in:

score_negative("UPB");



suche:

//} else {
//echo "<h3><center>Sorry, aber um ein Bild hochzuladen brauchst du mindestens 25 SkyFly Points</center></h3>";
//}

ndere es in:

} else {
echo "<h3><center>Sorry, aber um ein Bild hochzuladen brauchst du mindestens 25 SkyFly Points</center></h3>";
}


die 25 msst ihr wieder anpassen.

Nun geht in euer Scoresysteam und legt einen neuen Punkt unter ScoreSystem - Score-Einstellungen namens UPB an.
Dort gebt ihr nun an was ein user fr das hochladen zahlt.


Fertig.

-------------------------------------------------------------------------------------------------------------------------


Original bei //olelau//

Viel Spa damit DJMicha1985 ( DJ Vampire ) 
